﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Driverplugin;
using static Driverplugin.DeviceStatus.Types;

namespace IoTEdge.Grpc.Server.BaseLibs.entities
{
    public abstract class DeviceModelBase
    {
        public DeviceMeta DeviceMeta { get; set; }
        public CancellationTokenSource TokenSource { get; set; } = new();
        public int Interval { get; set; }
        public Action<DeviceModelBase, Driverplugin.Data> SendMessage { get; set; }
        public Action<DeviceModelBase, DeviceState, string> SendStatusMessage { get; set; }
        public virtual void run()
        {

        }
    }
}
